package support.dao;

import java.util.List;

import support.domain.Book;

/**
 * BookService...
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-2-9
 */
public interface BookDao {

	/**
	 * 
	 * @param book
	 */
	public void save(Book book);

	/**
	 * 
	 * @param book
	 */
	public void update(Book book);

	/**
	 * 
	 * @param book
	 */
	public void delete(Book book);

	/**
	 * 
	 * @param id
	 * @return
	 */
	public Book findBookById(Integer id);

	/**
	 * 
	 * @return
	 */
	public List<Book> findAllBook();

	/**
	 * 
	 * @param from
	 * @param too
	 * @return
	 */
	public List<Book> findBookByPrice(double from, double too);
}
